package com.avic.system.controller.info;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class MenuTreeInfo {

    @ApiModelProperty(value = "菜单ID")
    private String menuId;

    @ApiModelProperty(value = "菜单名字")
    private String label;

    @ApiModelProperty(value = "子菜单数据")
    private List<SubMenuTreeInfo> children;

    /**
     * 构造函数
     *
     * @param label 菜单名称
     */
    public MenuTreeInfo(String menuId, String label) {
        this.menuId = menuId;
        this.label = label;
    }
}
